import request from "@/utils/request";
import axios from "axios";
//获取所有的风险预警的产品信息
export const warningProductList = (params) => {
  return request({
    url: "/fxyjyb/dangerWarningProduct/list",
    method: "get",
    params: params,
  });
};

export const getCity = ()=>{
    return  axios.get("/src/assets/city.json");
}

//获取实况数据
export const getFactsInfo = async(options)=>{
  return await request({
    url:"/fxyjyb/smallscaleStation/live",
    method:"get",
    params:options,
  })
}

//获取雷达
export const getDoppler = async(options)=>{
  return await request({
    url:"/fxyjyb/doppler/list",
    method:"get",
    params:options
  })
}

//获取云图
export const getSatellitenephoram = async(options)=>{
  return await request({
    url:"/fxyjyb/satellitenephoram/list",
    method:"get",
    params:options,
  })
}

//获取河流气候数据
export const getRiverAnnualClimateStatistics = async(options)=>{
  return await request({
    url:"/fxyjyb/riverInfo/statistics",
    method:"get",
    params:options,
  })
}

//获取详细请求
export const getRiverDetialById = async(options)=>{
  return await request({
    url:"/fxyjyb/riverInfo/getPrecipitationAndAnomaly",
    method:"post",
    data:options,
  })
}

export const getWarnSignalInfo = (options)=>{
  return  request({
    url:"/fxyjyb/warnSignalInfo/list",
    method:"get",
    params:options,
  })
}

//获取风向规划的数据
export const getRiskZoning = async(options)=>{
  return await request({
    url:"/fxyjyb/file/riskZoning",
    method:"get",
    params:options,
  })
}

//获取预报数据
export const getYuBaoInfo = async(options)=>{
  return await request({
    url:"/fxyjyb/forecastGridFile/list",
    method:"get",
    params:options,
  })
}
//获取网格图片数据
export function getFactsGrid(data){
  return  request({
    url:"/fxyjyb/forecastGridFile/listPicture",
    method:"get",
    params:data,
  })
}

// 面雨量预报模块
//中小河流域
  //数值查询
export const getRiverRainYbWithShuZhi=(options)=>{
  return request({
    url:"/fxyjyb/riverRainYb/shuZhi",
    method:"get",
    params:options,
  })
}
 //中小河流域颜色查询
export const getRiverRainYbWithYanSe = (options)=>{
  return request({
    url:"/fxyjyb/riverRainYb/yanSe",
    method:"get",
    params:options,
  })
}
 //中小河流域列表查询
export const getRiverRainYbWithLieBiao =(options)=>{
  return request({
    url:"/fxyjyb/riverRainYb/lieBiao",
    method:"get",
    params:options,
  })
}


//山洪沟
 // 山洪沟数值
 export const getGullyRainYbShuZhi = (options)=>{
  return request({
    url:"/fxyjyb/gullyRainYb/shuZhi",
    method:"get",
    params:options,
  })
 }

  //山洪沟填色
  export const getGullyRainYbYanSe = (options)=>{
    return request({
      url:"/fxyjyb/gullyRainYb/yanSe",
      method:"get",
      params:options,
    })
   }
   //山洪沟列表
   export const getGullyRainYbLieBiao = (options)=>{
    return request({
      url:"/fxyjyb/gullyRainYb/lieBiao",
      method:"get",
      params:options,
    })
   }

// 水库上游面雨量预报
 //数值
 export const getReservoirRainYbShuzhi = (options)=>{
  return request({
    url:"/fxyjyb/reservoirRainYb/shuZhi",
    method:"get",
    params:options,
  })
 }

 //填色
 export const getReservoirRainYbYanSe = (options)=>{
  return request({
    url:"/fxyjyb/reservoirRainYb/yanSe",
    method:"get",
    params:options,
  })
 }
 //列表
 export const getReservoirRainYbLieBiao = (options)=>{
  return request({
    url:"/fxyjyb/reservoirRainYb/lieBiao",
    method:"get",
    params:options,
  })
 }

//主要河流面雨量预报
 //数值
 export const getMainRiverShuzhi = (options)=>{
  return request({
    url:"/fxyjyb/riverRainYb/mainRiverShuZhi",
    method:"get",
    params:options,
  })
 }
 //填色
 export const getMainRiverYanSe = (options)=>{
  return request({
    url:"/fxyjyb/riverRainYb/mainRiveryanSe",
    method:"get",
    params:options,
  })
 }
 //列表
 export const getMainRiverLieBiao = (options)=>{
  return request({
    url:"/fxyjyb/riverRainYb/mainRiverlieBiao",
    method:"get",
    params:options,
  })
 }

// 行政区划市县雨量预报
 // 数值
 export const getadministrativeRegionShuZhi = (options)=>{
  return request({
    url:"/fxyjyb/administrativeRegion/shuZhi",
    method:"get",
    params:options,
  })
 }
 //填色
 export const getadministrativeRegionYanSe = (options)=>{
  return request({
    url:"/fxyjyb/administrativeRegion/yanSe",
    method:"get",
    params:options,
  })
 }
 //列表
 export const getadministrativeRegionLieBiao = (options)=>{
  return request({
    url:"/fxyjyb/administrativeRegion/lieBiao",
    method:"get",
    params:options,
  })
 }

 //地灾隐患点预报
  //数值
  export const getdzPotentialPointsRainYbShuZhi= (options)=>{
    return request({
      url:"/fxyjyb/dzPotentialPointsRainYb/shuZhi",
      method:"get",
      params:options,
    })
   }
  //填色
  export const getdzPotentialPointsRainYbYanSe= (options)=>{
    return request({
      url:"/fxyjyb/dzPotentialPointsRainYb/yanSe",
      method:"get",
      params:options,
    })
   }
  //列表
  export const getdzPotentialPointsRainYblieBiao= (options)=>{
    return request({
      url:"/fxyjyb/dzPotentialPointsRainYb/lieBiao",
      method:"get",
      params:options,
    })
   }

//山洪隐患点预报
 //数值
 export const getshPotentialPointsRainYbShuzhi= (options)=>{
  return request({
    url:"/fxyjyb/shPotentialPointsRainYb/shuZhi",
    method:"get",
    params:options,
  })
 }
 //颜色
 export const getshPotentialPointsRainYbYanSe= (options)=>{
  return request({
    url:"/fxyjyb/shPotentialPointsRainYb/yanSe",
    method:"get",
    params:options,
  })
 }
 //列表
 export const getshPotentialPointsRainYbLieBiao= (options)=>{
  return request({
    url:"/fxyjyb/shPotentialPointsRainYb/lieBiao",
    method:"get",
    params:options,
  })
 }

 //面雨量实况
  //中小河流域
   //1.数值
 export const getriverRainSkShuzhi= (options)=>{
  return request({
    url:"/fxyjyb/riverRainSk/shuZhi",
    method:"get",
    params:options,
  })
 }
  //2.颜色
  export const getriverRainSkYanSe= (options)=>{
    return request({
      url:"/fxyjyb/riverRainSk/yanSe",
      method:"get",
      params:options,
    })
   }
  //3.列表
  export const getriverRainSkLieBiao = (options)=>{
    return request({
      url:"/fxyjyb/riverRainSk/lieBiao",
      method:"get",
      params:options,
    })
   }
 
  //主要河流
   //1.数值
   export const getMainRiverSKShuZhi = (options)=>{
    return request({
      url:"/fxyjyb/riverRainSk/mainRiverShuZhi",
      method:"get",
      params:options,
    })
   }
   //2.颜色
   export const getMainRiverSKYanSe = (options)=>{
    return request({
      url:"/fxyjyb/riverRainSk/mainRiveryanSe",
      method:"get",
      params:options,
    })
   }
   //列表
   export const getMainRiverSKLieBiao = (options)=>{
    return request({
      url:"/fxyjyb/riverRainSk/mainRiverlieBiao",
      method:"get",
      params:options,
    })
   }

  //山洪沟面雨量实况
   //1.数值
   export const getGullyRainSkShuZhi = (options)=>{
    return request({
      url:"/fxyjyb/gullyRainSk/shuZhi",
      method:"get",
      params:options,
    })
   }
  //2.颜色
  export const getGullyRainSkYanSe = (options)=>{
    return request({
      url:"/fxyjyb/gullyRainSk/yanSe",
      method:"get",
      params:options,
    })
   }
   //3.列表
   export const getGullyRainSkLieBiao = (options)=>{
    return request({
      url:"/fxyjyb/gullyRainSk/lieBiao",
      method:"get",
      params:options,
    })
   }
  
  //水库上游面雨量实况
   //1.数值
   export const getReservoirRainSkShuZhi = (options)=>{
    return request({
      url:"/fxyjyb/reservoirRainSk/shuZhi",
      method:"get",
      params:options,
    })
   }
   //2.颜色
   export const getReservoirRainSkYanse = (options)=>{
    return request({
      url:"/fxyjyb/reservoirRainSk/yanSe",
      method:"get",
      params:options,
    })
   }
   //3.列表
   export const getReservoirRainSkLieBiao = (options)=>{
    return request({
      url:"/fxyjyb/reservoirRainSk/lieBiao",
      method:"get",
      params:options,
    })
   }

  //行政区划市县雨量实况
   //1.数值
   export const getAdministrativeRegionSKShuZhi = (options)=>{
    return request({
      url:"/fxyjyb/administrativeRegion/SKshuZhi",
      method:"get",
      params:options,
    })
   }
  //2.颜色
  export const getAdministrativeRegionSKYanse = (options)=>{
    return request({
      url:"/fxyjyb/administrativeRegion/SKyanSe",
      method:"get",
      params:options,
    })
   }
  //3.列表
  export const getAdministrativeRegionSKLieBiao = (options)=>{
    return request({
      url:"/fxyjyb/administrativeRegion/SKlieBiao",
      method:"get",
      params:options,
    })
   }

 //地灾隐患点实况
  //1.数值
  export const getdzPotentialPointsRainSkShuZhi = (options)=>{
    return request({
      url:"/fxyjyb/dzPotentialPointsRainSk/shuZhi",
      method:"get",
      params:options,
    })
   }
  //2.颜色
  export const getdzPotentialPointsRainSkYanse = (options)=>{
    return request({
      url:"/fxyjyb/dzPotentialPointsRainSk/yanSe",
      method:"get",
      params:options,
    })
   }
   //3.列表
   export const getdzPotentialPointsRainSkLieBiao = (options)=>{
    return request({
      url:"/fxyjyb/dzPotentialPointsRainSk/lieBiao",
      method:"get",
      params:options,
    })
   }

  //山洪隐患点实况
   //1.数值
   export const getshPotentialPointsRainSkShuZhi = (options)=>{
    return request({
      url:"/fxyjyb/shPotentialPointsRainSk/shuZhi",
      method:"get",
      params:options,
    })
   }
   // 2.填色
   export const getshPotentialPointsRainSkYanse = (options)=>{
    return request({
      url:"/fxyjyb/shPotentialPointsRainSk/yanSe",
      method:"get",
      params:options,
    })
   }
   //3.列表
   export const getshPotentialPointsRainSkLieBiao = (options)=>{
    return request({
      url:"/fxyjyb/shPotentialPointsRainSk/lieBiao",
      method:"get",
      params:options,
    })
   }


//面雨量的图表查询
 //中小河流和主要河流
 export const getQueryRainfallTimeSeriesChart = (options)=>{
  return request({
    url:"/fxyjyb/rainfallTimeSeriesChart/queryRainfallTimeSeriesChart",
    method:"get",
    params:options,
  })
 }
 //山洪沟
 export const getQueryRainfallTimeSeriesChart2 = (options)=>{
  return request({
    url:"/fxyjyb/rainfallTimeSeriesChart/queryRainfallTimeSeriesChart2",
    method:"get",
    params:options,
  })
 }
 
 //书库上游积水区
 export const getQueryRainfallTimeSeriesChart5 = (options)=>{
  return request({
    url:"/fxyjyb/rainfallTimeSeriesChart/queryRainfallTimeSeriesChart5",
    method:"get",
    params:options,
  })
 }
 //行政区域
 export const getQueryRainfallTimeSeriesChart6 = (options)=>{
  return request({
    url:"/fxyjyb/rainfallTimeSeriesChart/queryRainfallTimeSeriesChart6",
    method:"get",
    params:options,
  })
 }

 //地灾隐患点
 export const getQueryRainfallTimeSeriesChart3 = (options)=>{
  return request({
    url:"/fxyjyb/rainfallTimeSeriesChart/queryRainfallTimeSeriesChart3",
    method:"get",
    params:options,
  })
 }

 //山洪隐患点
 export const getQueryRainfallTimeSeriesChart4 = (options)=>{
  return request({
    url:"/fxyjyb/rainfallTimeSeriesChart/queryRainfallTimeSeriesChart4",
    method:"get",
    params:options,
  })
 }
